package com.team11.server.service.admin;


import com.team11.server.mapper.Admin_Insert_T_Mapper;
import com.team11.server.pojo.TInformation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Admin_Insert_T_Service {
    @Autowired
    private Admin_Insert_T_Mapper admin_insert_t_mapper;
    public String Insert_T(TInformation tInformation){
       Integer t=admin_insert_t_mapper.Inset_T(tInformation);
       if (t>0) {
           return "插入成功";
       }
       else {
           return "插入失败";
       }
    }
    public String If_have_t(TInformation tInformation){
        Integer t=admin_insert_t_mapper.Sel_have_T(tInformation);
        if (t>0){
            return "工号or身份证重复！";
        }
        else{
            return "1";
        }
    }
}
